from selenium.webdriver.common.by import By

from xueqiu_app_po.base.xueqiu_app import XueQiuApp


class MarketQuotations(XueQiuApp):
    _ELEMENT=By.XPATH, '//*[@resource-id="com.xueqiu.android:id/portfolio_stockName"]'
    def get_name(self):
        # 获取名称
        res = self.finds(*self._ELEMENT)
        a = [r.text for r in res]
        return a